<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>信息公告</span>
      </div>
      <div class="text item">
        <div class="line">当前共有<span>{{ list.length }}</span>个员工</div>
      </div></el-card>
  </div>
</template>

<script>
import * as all from '@/api/employee'
import { getEmployeeList } from '@/api/table'

export default {
  name: 'EmployeeData',
  data() {
    return {
      list: [],
      sum: ''
    }
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {
      getEmployeeList().then(response => {
        console.log('***')
        const { content } = response
        this.list = content.records
      })
    }
  }
}
</script>
<style scoped>
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}
.graph {
  width: 300px;
  height: 300px;
}
.line {
  margin-bottom: 10px;
}
span {
  font-size: 30px;
  font-weight: bolder;
  margin-left: 10px;
  margin-right: 10px;
}
</style>
